package com.itheima.exception;

public class Test {
    // 测试异常处理类
    public static void main(String[] args) {
        try {
            Student timor = new Student();

            timor.setName("Timor队长");
            timor.setAge(159);

            System.out.println(timor);
        } catch (AgeHandleException e) {
            System.out.println("捕获异常：" + e.getMessage());
        }

    }
}
